<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
   
   <h:head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <title><ui:insert name="windowTitle"/></title>
      <h:outputStylesheet library="css" name="styles.css"/>
   </h:head>
   
   <h:body>

      <div id="heading">
         <div class="header">
         <h:link outcome="index.xhtml">
            Кафедра Оптимизации систем управления
         </h:link>
         </div>
      </div>
      <div id="line">
      </div>
      <div id="sidebarLeft">
      <h:panelGroup rendered="#{!authBean.loggedIn}">
      	<ui:include src="/sections/guest/sidebarLeft.xhtml" />
      </h:panelGroup>
      <h:panelGroup rendered="#{authBean.loggedIn}">
      		<ui:include src="/sections/user/sidebarLeft.xhtml" />
	    </h:panelGroup>
	    <h:panelGroup rendered="#{authBean.loggedIn and authBean.currentUser.isStudent}">
      		<ui:include src="/sections/student/sidebarLeft.xhtml" />
    	</h:panelGroup>
      	<h:panelGroup rendered="#{authBean.loggedIn and authBean.currentUser.isTeacher}">
      		<ui:include src="/sections/teacher/sidebarLeft.xhtml" />
    	</h:panelGroup>
    	<h:panelGroup rendered="#{authBean.loggedIn and authBean.currentUser.isAdministrator}">
      		<ui:include src="/sections/admin/sidebarLeft.xhtml" />
    	</h:panelGroup>
      </div>    
      
      <div id="content">
         <ui:insert name="content"/>
      </div>
      <ui:debug/>
   </h:body>
</html>